/* ======使用注明=======
 //#import "SEGElevatorControllAlertView.h"
 //@property (nonatomic, strong)SEGElevatorControllAlertView *varElevatorControllAlertView; <#注释#>
 // 控件数据模型创建
 SEGElevatorControllAlertViewModel *data = [[SEGElevatorControllAlertViewModel alloc]init];
 // 控件内容布局计算
 SEGElevatorControllAlertViewLayout *layout = [[SEGElevatorControllAlertViewLayout alloc]initWithData:data type:SEGEnumElevatorControllAlertViewType_NO];
 // 内容布局填充到视图
 SEGElevatorControllAlertView *varElevatorControllAlertView = [[SEGElevatorControllAlertView alloc]initWithFrame:CGRectZero];
 //varElevatorControllAlertView.delegate = self;
 varElevatorControllAlertView.left = 0;
 varElevatorControllAlertView.top = 0;
 varElevatorControllAlertView.width = LYScreenWidth();
 varElevatorControllAlertView.height = varElevatorControllAlertView.layout.totalHeight;
 [varElevatorControllAlertView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>
#import "SEGPickView.h"

#define kElevatorControllAlertViewHeight 44     // ElevatorControllAlertView的高度

typedef NS_ENUM(NSUInteger, SEGEnumElevatorControllAlertViewType) {
    SEGEnumElevatorControllAlertViewType_NO = 0, /*默认*/
};

@protocol SEGprotocolElevatorControllAlertViewDelegate <NSObject>
@optional
-(void)SEGprotocolDidSelectedRowData:(id)data elevId:(NSString *)elevId elevType:(NSString *)elevType keyU:(NSString *)keyU;
@end

@interface SEGElevatorControllAlertFloorModel : NSObject
@property (nonatomic, copy) NSString *name;
@property (nonatomic, strong)id businessData;
@end

@interface SEGElevatorControllAlertViewModel : NSObject
@property (nonatomic, assign) CGFloat widgetWidth;//控件宽度
@property (nonatomic, strong)NSArray<SEGElevatorControllAlertFloorModel*> *dataSource;
-(instancetype)init;
@end

@interface SEGElevatorControllAlertViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumElevatorControllAlertViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGElevatorControllAlertViewModel *data;
- (instancetype)initWithData:(SEGElevatorControllAlertViewModel *)data type:(SEGEnumElevatorControllAlertViewType)type;
-(void)segElevatorControllAlertViewLayout;

@property (nonatomic, assign) CGFloat titleLabelHeight;//titleLabel 高度
@property (nonatomic, strong) SEGTextLayout *titleLabelTextLayout;//titleLabel 富文本布局

@property (nonatomic, assign) CGFloat cancelLabelHeight;//cancelLabel 高度
@property (nonatomic, strong) SEGTextLayout *cancelLabelTextLayout;//cancelLabel 富文本布局
@end

@interface SEGElevatorControllAlertView : UIView<UIPickerViewDataSource,UIPickerViewDelegate>
@property (nonatomic, copy) NSString *keyU; // 用户秘钥
@property (nonatomic, copy) NSString *elevType; // 梯控类型 0:蓝牙 1:二维码
@property (nonatomic, copy) NSString *elevId; 

@property (nonatomic, strong,readonly)SEGElevatorControllAlertViewLayout *layout;
- (void)setWithLayout:(SEGElevatorControllAlertViewLayout *)layout;

@property (nonatomic, strong) SEGLabel *titleLabel; // <#注释#>
@property (nonatomic, strong) SEGLabel *cancelLabel; // <#注释#>
@property (nonatomic, strong) UIScrollView *backgroundView;
@property (nonatomic, assign) id<SEGprotocolElevatorControllAlertViewDelegate> delegate;// 代理

-(void)showWithData:(NSArray<SEGElevatorControllAlertViewModel*>*)dataSource;
@end

